package com.yonyou.cyxdms.basedata.service.repository.basedata;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonyou.cyxdms.basedata.service.dto.SearchProductDlrDTO;
import com.yonyou.cyxdms.basedata.service.dto.SearchVsProductDlrDTO;
import com.yonyou.cyxdms.basedata.service.entity.basedata.ProductGroupPO;
import com.yonyou.cyxdms.basedata.service.vo.VsProductDlrVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface ProductGroupMapper {

    List<ProductGroupPO> queryList(@Param("optionCode") String optionCode, @Param("productCode") String productCode, @Param("appId") String appId);

    List<VsProductDlrVO> queryListVsProuct(Page page, @Param("search") SearchVsProductDlrDTO searchVsProductDlrDTO, @Param("dto") SearchProductDlrDTO searchProductDlrDTO);

    VsProductDlrVO selectByProductCode(@Param("productCode")String productCode,@Param("appId")String appId,@Param("powerType")Integer powerType,@Param("dto") SearchProductDlrDTO searchProductDlrDTO);

}
